// docusaurus-plugin-webpack.js

module.exports = function (context, options) {
  return {
    name: "docusaurus-webpack-plugin",
    configureWebpack(config, isServer, utils) {
      const webpack = require("webpack");
      return {
        plugins: [
          new webpack.DefinePlugin({
            "process.env": JSON.stringify(process.env),
          }),
        ],
      };
    },
  };
};
